package com.cloudsigns.factorymanager2.project.utils;

import com.cloudsigns.factorymanager2.project.bean.DesignContactBean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by tony on 2017/12/2.
 */

public class DesignContactOrderUttil {
    private static DesignContactOrderUttil instance;
    public List<DesignContactBean> designContactList = new ArrayList<>();

    private DesignContactOrderUttil() {
    }

    ;

    public static DesignContactOrderUttil getInstance() {
        if (instance == null)
            instance = new DesignContactOrderUttil();

        return instance;
    }

    public void save(DesignContactBean bean) {
        designContactList.add(bean);
    }

    public List<DesignContactBean> searchAll() {
        return designContactList;
    }
}
